#define _CRT_SECURE_NO_WARNINGS 1

#include "List.h"

int main()
{
	LTNode* plist = CreatListTNodeHead();
	LTNodePushBack(plist, 2);
	LTNodePushBack(plist, 3);
	LTNodePushFront(plist, 1);
	LTNodePrint(plist);

	LTNodePopFront(plist);
	LTNOdePopBack(plist);

	LTNodePrint(plist);

	LTNode* pos = LTNodeFind(plist, 2);
	LTNodeInsertFront(pos, 1);
	LTNodeErase(pos->prev);


	LTNodePrint(plist);

    LTNodeDestory(plist);

	return 0;
}